<?php

include_once 'controller/default.php';
include_once 'model/questions/process.php';
if (isset($_POST)) {
    $question = new questions();
    if (isset($_POST["update"])) {
        $update = $question->Update($_POST);
        if ($update) {
            echo '<script>alert("Chấp nhận Question thành công.")</script>';
            include 'view/question/question_manager.php';
        } else {
            echo '<script>alert("Chấp nhận Question thất bại.")</script>';
            include 'view/question/question_update.php';
        }
    }
}
?>
